package com.heu.blood.charge.exception;

import com.heu.blood.globalExceptionHandler.BaseErrorInfoInterface;

/**
 * @author lhh
 * @date 2024-07-23 16:12
 * 收费模块的异常枚举类--全部以111开头
 */

public enum ChargeExceptionEnum implements BaseErrorInfoInterface {
    JSON_FAILED("1110", "JSON转换失败"),
    SAVE_FAILED("1112", "保存失败"),
    IDS_NULL("1113","ids为空或长度为0"),
    IDS_STATE_WRONG("1114", "IDS里是否状态不全是CHARGE_VERIFIED的"),
    ILLEGAL_PARAMS("1115","部分参数不合法");
    ChargeExceptionEnum(String resultCode, String resultMsg) {
        this.resultCode = resultCode;
        this.resultMsg = resultMsg;
    }

    // 错误码
    private final String resultCode;

    // 错误提示
    private final String resultMsg;

    @Override
    public String getResultCode() {
        return resultCode;
    }

    @Override
    public String getResultMsg() {
        return resultMsg;
    }
}
